package com.site.wisdom_construction.service.personnelModule;

import com.site.wisdom_construction.dao.personnelModule.ContractWorkersDocumentDao;
import com.site.wisdom_construction.entity.personnelModule.ContractWorkersDocument;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/4/6
 * @Description
 */
@Service
public class ContractWorkersDocumentService implements ContractWorkersDocumentDao {
    @Autowired
    private ContractWorkersDocumentDao contractWorkersDocumentDao;

    @Override
    public int insertContractWorkersDocument(Map map) {
        return contractWorkersDocumentDao.insertContractWorkersDocument(map);
    }

    @Override
    public int deleteContractWorkersDocument(Map map) {
        return contractWorkersDocumentDao.deleteContractWorkersDocument(map);
    }

    @Override
    public int updateContractWorkersDocument(Map map) {
        return contractWorkersDocumentDao.updateContractWorkersDocument(map);
    }

    @Override
    public List<ContractWorkersDocument> findContractWorkersDocumentByPage(Map map) {
        return contractWorkersDocumentDao.findContractWorkersDocumentByPage(map);
    }

    @Override
    public long Total(Map map) {
        return contractWorkersDocumentDao.Total(map);
    }
}
